package com.ruoyi.work.api.impl;

import com.ruoyi.flowable.api.domain.vo.WorkSignVo;
import com.ruoyi.flowable.api.service.IWorkSignServiceApi;
import com.ruoyi.work.mapper.WorkSignMapper;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 签署api接口实现类
 *
 * @author fengcheng
 */
@RequiredArgsConstructor
@Service
public class IWorkSignServiceApiImpl implements IWorkSignServiceApi {
    @Autowired
    private WorkSignMapper workSignMapper;

    /**
     * 查询签署
     *
     * @param signId 签署主键
     * @return 签署
     */
    @Override
    public WorkSignVo selectWorkSignBySignId(String signId) {
        return workSignMapper.selectWorkSignBySignId(Long.valueOf(signId));
    }

    /**
     * 修改签署
     *
     * @param workSignVo 签署
     * @return 结果
     */
    @Override
    public void updateWorkSign(WorkSignVo workSignVo) {
        workSignMapper.updateWorkSign(workSignVo);
    }
}
